///
/// This is currently used to drive some entries which are added to the
/// LD_LIBRARY_PATH as appropriate.
+ // TODO: deprecated, remove
pub native_dirs: HashMap<PackageId, Path>,
/// Root output directory (for the local package's artifacts)
pub fn new(pkg: &Package) -> Compilation {
Compilation {
libraries: HashMap::new(),
- native_dirs: HashMap::new(),
+ native_dirs: HashMap::new(), // TODO: deprecated, remove
root_output: Path::new("/"),
deps_output: Path::new("/"),
tests: Vec::new(),
pub fn dest<'a>(&'a self) -> &'a Path { &self.root }
pub fn deps<'a>(&'a self) -> &'a Path { &self.deps }
pub fn examples<'a>(&'a self) -> &'a Path { &self.examples }
+
+ // TODO: deprecated, remove
pub fn native(&self, package: &Package) -> Path {
self.native.join(self.pkg_dir(package))
}
pub fn old_dest<'a>(&'a self) -> &'a Path { &self.old_root }
pub fn old_deps<'a>(&'a self) -> &'a Path { &self.old_deps }
pub fn old_examples<'a>(&'a self) -> &'a Path { &self.old_examples }
+
+ // TODO: deprecated, remove
pub fn old_native(&self, package: &Package) -> Path {
self.old_native.join(self.pkg_dir(package))
}
pub fn examples(&self) -> &'a Path { self.root.examples() }
+ // TODO: deprecated, remove
pub fn native(&self, pkg: &Package) -> Path { self.root.native(pkg) }
pub fn build(&self, pkg: &Package) -> Path { self.root.build(pkg) }
pub fn old_examples(&self) -> &'a Path { self.root.old_examples() }
+ // TODO: deprecated, remove
pub fn old_native(&self, pkg: &Package) -> Path {
self.root.old_native(pkg)
}
// Traverse the entire dependency graph looking for -L paths to pass for
// native dependencies.
+ // TODO: deprecated, remove
let mut dirs = Vec::new();
each_dep(package, cx, |pkg| {
if pkg.get_manifest().get_build().len() > 0 {
let mut search_path = DynamicLibrary::search_path();
search_path.push(layout.deps().clone());
+ // TODO: deprecated, remove
// Also be sure to pick up any native build directories required by plugins
// or their dependencies
let mut native_search_paths = HashSet::new();